import {
  Button,
  List,
  Cell,
  Tabbar,
  TabbarItem,
  Swipe,
  SwipeItem,
  Grid,
  GridItem,
  NavBar,
  Icon,
  Sticky,
  Card,
  Sidebar,
  SidebarItem,
  Form,
  Field,
  CellGroup,
  Search,
  Tabs,
  Tab,
  Image,
  Empty,
  Radio,
  Loading,
  RadioGroup,
  ActionSheet,
  Uploader,
  DatetimePicker,
  Popup,
  Checkbox,
  CheckboxGroup,
  Dialog,
  noticeBar,
} from 'vant'

const componentList = [
  Button,
  List,
  Cell,
  Tabbar,
  TabbarItem,
  Swipe,
  SwipeItem,
  Grid,
  GridItem,
  NavBar,
  Icon,
  Sticky,
  Card,
  Sidebar,
  SidebarItem,
  Form,
  Field,
  CellGroup,
  Search,
  Tabs,
  Tab,
  Image,
  Empty,
  Radio,
  Loading,
  RadioGroup,
  ActionSheet,
  Uploader,
  DatetimePicker,
  Popup,
  Checkbox,
  CheckboxGroup,
  Dialog,
  noticeBar,
]

export function registerVantComp(app) {
  componentList.forEach((comp) => {
    app.use(comp)
  })
}

